package cn.stu.framework.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 登录日志
 *
 * @author 郑志豪
 * @date 2023/09/03
 */
@Data
@TableName("login_log")
public class LoginLog implements Serializable {


    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    private String acc;

    private String ipaddr;

    private Integer status;

    private String msg;

    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime createTime;

}